home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / QuickDraw GX / GXOverrideTool / DocumentationAndSample next >
Encoding:
Text File  |  1995-12-04  |  3.3 KB  |  93 lines  |  [TEXT/MPS ]

  1. #
  2. #    The GXOverrideTool
  3. #        Copyright © Apple Computer Inc, 1995.
  4. #        Daniel I. Lipton
  5. #
  6. #
  7. #  The following is an example of a message override tool source file.
  8. #        Note that the tool does little sanity checking so beware.
  9. #
  10. #        Blank lines are allowed.  Comments start with a '#' at the beginning of the line.
  11. #            commenting is not allowed on a source line. (cause '#' chars can be part of a line)
  12. #
  13. #        This file gives examples of the dash options understood by the tool when
  14. #            parsing the source file. (different from command line dash options)
  15.  
  16.  
  17. #
  18. # The Command Line options are as follows:
  19. #
  20. #    -oj name:                output jump table for 68k.
  21. #    -om68k name:            output message override resource for 68k.
  22. #    -t type:                Make creator type of output files be type.  example: -t 'MPS '
  23. #
  24. #    Example Command Line:
  25. #        GXOverrideTool MyOverrideFile -oj MyOverrides.a -om68k MyOverrides.r -t 'MPS '
  26. #
  27. #
  28. # The -p option is a passthrough option to pass a line on to a target file.
  29. #        Different forms are supported:
  30. #            -pr        for dumping into override resource files.
  31. #            -pj        for dumping into jump table file.
  32. #
  33. #        This can be used to put additional #include's into a .r file that is
  34. #            generated.
  35. #
  36. #        Note, if you use the -p option in the midst of defining a message group
  37. #            You will run into big trouble.  The tool could be made to support this
  38. #            at great expense.
  39. #
  40. #
  41. -pj    ; This is a test.  This line should be added to the jump table file.
  42. -pr #include "test.h"  /* This would get added to the resource files specified. */
  43.  
  44. # the -s option identifies what the exported name for the jump table should be for a segment.
  45. # It takes the format of "-s segName, entryName"  (-se does same thing but exports referenceCount name)
  46.  
  47. -s segmentID    SD_JumpTable
  48. -se OtherSeg    SD_Other
  49.  
  50.  
  51. # the -g option is used to start a new override resource group.
  52. # It takes the format of "-g overrideID"
  53.  
  54. -g gxDriverImagingOverrideID
  55.  
  56.  
  57. #
  58. # A line with no dash option specifies an override triple.
  59. #    The triple consists of segment name, message name, and routine name.
  60. #        Make sure the segment names have entries in the -s lines.
  61. #      Be careful of spelling and letter case here.  easy to mess up.
  62. #        The tool does not check for mistakes here.
  63. #
  64.  
  65. segmentID    gxPostscriptGetDocumentProcSetList    DriverGetDocumentProcSetList
  66. segmentID     gxPostscriptDoPageSetup                DriverDoPageSetup
  67. OtherSeg     gxPostscriptQueryPrinter            DriverQueryPrinter
  68. segmentID    gxPostscriptSelectPaperType            DriverSelectPaperType
  69.  
  70. -g (gxDriverUniversalOverrideID + 1 - 1) /* a test */
  71.  
  72. segmentID    gxInitialize                        DriverInitialize
  73. segmentID    gxShutdown                            DriverShutdown
  74. segmentID    gxFetchTaggedData                    DriverFetchTaggedData
  75. segmentID    gxSetupImageData                    DriverSetupImageData
  76.  
  77. # The NOT_A_MESSAGE string in the message column means add the routine
  78. #     to the jump table without adding it to the override resource.
  79.  
  80. OtherSeg    NOT_A_MESSAGE                        _ARoutineThatIsntAMessage
  81.  
  82. segmentID    gxJobDefaultFormatDialog            DriverJobDefaultFormatDialog
  83. segmentID    gxFormatDialog                        DriverFormatDialog
  84. segmentID    gxHandlePanelEvent                    DriverHandlePanelEvent
  85. segmentID    gxDefaultPrinter                    DriverDefaultPrinter
  86. OtherSeg    gxDefaultFormat                        DriverDefaultFormat
  87. segmentID    gxDefaultDesktopPrinter                DriverDefaultDesktopPrinter
  88. segmentID    gxGetDTPMenuList                    DriverGetDTPMenuList
  89. segmentID    gxDTPMenuSelect                        DriverDTPMenuSelect
  90. segmentID    gxJobStatus                            DriverJobStatus
  91. segmentID    gxJobIdle                            DriverJobIdle
  92.  
  93.